{% load i18n %}
<fieldset>
    <legend>{% trans "Pages Admin" %}</legend>
    <div class="fieldsetdiv">
        {% trans "Page List" %}:
        <table id="pagetable" class="yui-skin-sam noborder_table">
            <tr>
                <th>{% trans "Title" %}</th>
                <th>{% trans "Author" %}</th>
                <th>{% trans "Date" %}</th>
                <th>{% trans "Permalink" %}</th>
                <th> &nbsp;</th>
            </tr>
            {% for entry in pages %}
            <tr>
                <td>{{entry.title}}</td>
                <td>{{entry.author.email}}</td>
                <td>{{entry.date|timezone:BLOG.time_zone_offset|date:"m/d/y"}}</td>
                <td>
                    <a href="{{entry.full_permalink}}" target="_blank">{{entry.full_permalink}}</a>
                </td>
                <td>
                    <a href='/edit/blog/{{entry.key.id}}' target="_blank">{% trans "edit" %}</a> &nbsp;
                    <a href='/delete/blog/{{entry.key.id}}' target="_blank">{% trans "delete" %}</a>
                </td>
            </tr>
            {% endfor%}
        </table>
    </div>
</fieldset>
<fieldset id="admin_menus">
    <legend>{% trans "Menu Admin" %}</legend>
    <div class="fieldsetdiv">
        Menu List:<br>
        <small>{% trans "Tips:you can double-click the 'Add' column in the table header to add a new record." %}</small>  <br>
        <small>{% trans "For example: If you want to add a menu '/albums' for system album feature, just add a new record and then set the valid to true." %}</small> 
            <div id="menudiv">
            <table id="menutable">
                <thead><tr>
                    <th>{% trans "Title" %}</th>
                    <th>{% trans "Permalink" %}</th>
                    <th>{% trans "Target" %}</th>
                    <th>{% trans "Order" %}</th>
                    <th>{% trans "Valid" %}</th>
                    <th>{% trans "Id" %}</th>
                    <th>{% trans "Delete" %}</th>
                    <th>{% trans "Add" %}</th>
                </tr></thead>
                <tbody>
                {% for entry in menus %}
                <tr id="menu_{{entry.key.id}}">
                    <td>{{entry.title}}</td>
                    <td>{{entry.permalink}}</td>
                    <td>{{entry.target}}</td>
                    <td>{{entry.order}}</td>
                    <td>{{entry.valid}}</td>
                    <td>{{entry.key.id}}</td>
                    <td> </td>
                    <td> </td>
                </tr>
                {% endfor%}
                </tbody>
            </table>
            </div>
    	</div>
</fieldset>

